package com.system.email.properties;

public enum EmailCode {

    register("register","emailRegister"),
    password("password","updatePassword");

    private String execKey;
    private String execValue;
    private String emailAddress;

    EmailCode(String execKey, String execValue) {
        this.execKey = execKey;
        this.execValue = execValue;
    }

    public static String getName(String execKey){
        EmailCode[] colors = EmailCode.values();
        for (EmailCode code : colors) {
            if (code.getExecKey().equals(execKey)){
                return code.execValue;
            }
        }
        return null;
    }


    public String getExecKey() {
        return execKey;
    }
}
